package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 成果评审记录对象 def_gain_review
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
public class DefGainReview extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 成果id */
    @Excel(name = "成果id")
    @NotNull(message = "成果 id不能为空")
    private Long gainId;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 操作类型，0：提交成果，1：评审成果， 2：发起申诉，3：评审申诉 */
    @Excel(name = "操作类型，0：提交成果，1：评审成果， 2：发起申诉，3：评审申诉")
    private Integer operate;

    /** 评审结果，0：不通过，1：通过 */
    @Excel(name = "评审结果，0：不通过，1：通过")
    @NotNull(message = "评审结果不能为空")
    private Integer result;

    /** 评审等级 */
    @Excel(name = "评审等级")
    @NotNull(message = "评审等级不能为空")
    private Integer garde;

    /** 得分 */
    @Excel(name = "得分")
    @NotNull(message = "得分不能为空")
    private Integer score;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGainId(Long gainId) 
    {
        this.gainId = gainId;
    }

    public Long getGainId() 
    {
        return gainId;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setOperate(Integer operate)
    {
        this.operate = operate;
    }

    public Integer getOperate()
    {
        return operate;
    }
    public void setResult(Integer result)
    {
        this.result = result;
    }

    public Integer getResult()
    {
        return result;
    }
    public void setGarde(Integer garde)
    {
        this.garde = garde;
    }

    public Integer getGarde()
    {
        return garde;
    }
    public void setScore(Integer score)
    {
        this.score = score;
    }

    public Integer getScore()
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gainId", getGainId())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("remark", getRemark())
            .append("operate", getOperate())
            .append("result", getResult())
            .append("garde", getGarde())
            .append("score", getScore())
            .toString();
    }
}
